import request from '/@/utils/request';

// 仓库树形结构
export function getwhTree(params) {
	return request({
		url: '/wms/warehouse/whTree',
		method: 'get',
		params,
	});
}
// 查询分类树
export function treeQuery(data: any) {
	return request({
		url: '/product/category/treeQuery',
		method: 'post',
		data: data,
	});
}

//  查询品牌列表
export const getBrandList = (params?: Object) => {
	return request({
		url: '/product/brand',
		method: 'get',
		params,
	});
};

// FBA分页查询
export const amazonFbaInventoryPage = (data: any) => {
	const { current, size, ascs, descs } = data;
	const params = { current, size, ascs, descs };
	return request({
		url: `/report/amazonFbaInventory/page`,
		method: 'post',
		params,
		data,
	});
};

// FBA导出
export const exportFbaInventory = (data: any) => {
	return request({
		url: `/report/amazonFbaInventory/export`,
		method: 'post',
		data,
	});
};

